﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace LEEAAttendanceControl.Web
{
    public class LoginStatus
    {
        public bool LoggedIn { get; set; }

        public string Role { get; set; }

        [Key]
        public string Name { get; set; }

        public string Display { get; set; }

        public int CompanyID { get; set; }
        public int DepartmentID { get; set; }
        public int EmployeeID { get; set; }

        public LoginStatus() { }

        public LoginStatus(bool logged, string role) : this(logged, role, String.Empty, String.Empty, 0, 0, 0) { }

        public LoginStatus(bool logged, string role, string name, string display, int comID, int depID, int empID)
        {
            LoggedIn = logged;

            Role = role;

            Name = name;

            Display = display;

            CompanyID = comID;
            DepartmentID = depID;
            EmployeeID = depID;
        }
    }
}